<%@page import="java.util.List"%>
<%@page import="com.multiplayer.entity.Student"%>
<%@page import="com.multiplayer.tools.DBTools"%>
<%@page import="com.multiplayer.entity.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<!-- Bootstrap -->
<link href="${pageContext.request.contextPath}/personal/css/crowdfunding.center/my_info.css" rel="stylesheet">

</head>
<body>
<%
     
     User user=(User)session.getAttribute("user");
	 String sno=user.getSno();
	 List<Student> students=(List<Student>)DBTools.exQuery("select * from Student where sno=?", Student.class, sno);
     for(Student student:students){
%>
<!-- 开始 -->
<div class="my_info_title">我的资料</div>
<div class="my_info_title_3">
  <ul>
    <li id="listClick_1" style="border-bottom: 1px solid #C40521; color: #C40521;">基本资料</li>
   
    <li id="listClick_4">修改密码</li>
  </ul>
</div>
<!--个人信息界面-->
<div class="my_info_content">
<form action="../../PersonalServlet?op=updateUserInfo" method="post" >
  <table class="my_info_content_care_table" style="margin-left:-80px;">
      <input type="hidden"  name="sno" value="<%=student.getSno()%>">
      <tr>
        <td align="right" class="color555">姓名：</td>
        <td class="color555"><input class="my_info_content_care_table_text" name="sname" type="text" value="<%=student.getSname()%>" >
      </tr>
      <tr>
        <td align="right" class="color555">性别：</td>
        <td class="color555">
        <label><input type="text" name="ssex" value="<%=student.getSsex()%>"  readonly="true"></label>
      </tr>
      <tr>
        <td align="right" class="color555">年龄：</td>
        <td class="color555"><input class="my_info_content_care_table_text" name="sage" type="text" value="<%=student.getSage()%>" >
      </tr>
      <tr>
        <td align="right" class="color555">班级：</td>
        <td class="color555"><input class="my_info_content_care_table_text" name="sclass" type="text" value="<%=student.getSclass()%>" >
      </tr>
      <tr>
        <td align="right" class="color555">学院：</td>
        <td class="color555"><input class="my_info_content_care_table_text" name="sacademy" type="text" value="<%=student.getSacademy()%>" >
      </tr>
      <tr>
        <td align="right" class="color555">信誉值：</td>
        <td class="color555"><input class="my_info_content_care_table_text" name="credibility" type="text" value="<%=user.getCredibility()%>" readonly="true">
      </tr>
      <tr>
        <td align="center" class="color555" >
        	<input class="my_info_content_care_table_submit"  type="submit" value="修改" >
            <span id="" class="colorCA1E37 margin_left10 font_size12"><%=request.getAttribute("updateResult")%></span>
        	</td>
      </tr>
       </table>
       
      </form>
     <%} %>
</div>
</div>

<!-- 结束 --> 
<script src="${pageContext.request.contextPath}//js/jquery-2.1.1.min.js"></script> 
<script src="${pageContext.request.contextPath}//js/jquery.cityselect.js"></script> 
<script type="text/javascript">

</script>
</body>
</html>